#ifndef GROUPSESSIONDETAILWIDGET_H
#define GROUPSESSIONDETAILWIDGET_H

#include <QWidget>
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QScrollArea>
#include <QScrollBar>
#include <QLineEdit>

#include "sessiondetailwidget.h"

///////////////////////////////////////
/// \brief 群聊窗口
///////////////////////////////////////
class GroupSessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    GroupSessionDetailWidget(QWidget* parent = nullptr);

private:
    void initData();
    void addMember(AvatarItem* avatar);
    void initMemberList(const QString& chatSessionId);

private:
    QWidget* m_container = nullptr;
    QLineEdit* m_groupNameEdit = nullptr;
    QLabel* m_realGroupNameLabel = nullptr;

    // 控制添加元素的位置，从(0,1)开始
    int m_row = 0;
    int m_col = 1;
};

#endif // GROUPSESSIONDETAILWIDGET_H
